﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace SevenInvaders.LEVEL_JACK
{
    class Cenario
    {
        public Texture2D texture;
        public Rectangle rectangle;

        public Cenario(Texture2D myTexture, Rectangle myRectangle)
        {
            texture = myTexture;
            rectangle = myRectangle;
        }

        public void Update()
        {
            rectangle.X -= 1;
        }

        public void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(texture, rectangle, Color.White);
        }

    }
}
